package com.xiaolin.web.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * @ClassName HelloFilter
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/9/28
 * @Version 1.0
 */
@Component
public class SecondFilter implements Filter{
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("second我拦截到你了");
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("second回去吧");
    }
}
